package com.ibeeking.gmc.global.service.common.param;

import com.ibeeking.found.common.enums.ApplicationEnum;
import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName DatabaseTemplateParam
 * @Description
 * @Author ibeeking
 * @Date 2021-03-02 09:07
 **/
@Data
public class DatabaseTemplateParam implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @NotNull(message = "数据库模板id必填", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 数据库连接
     */
    @NotNull(message = "数据库连接必填")
    private Long dbConfigId;
    /**
     * 行业类型:mall=电商平台；mdi=制造业
     */
    private String industry;
    /**
     * 所属应用
     */
    @NotNull(message = "所属应用必选", groups = {BaseValidationGroup.Insert.class})
    private ApplicationEnum application;

    /**
     * 数据库名
     */
    @NotBlank(message = "数据库名不能为空")
    private String dbName;
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 描述
     */
    private String description;

    private Integer sort;
}
